home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: in1.uu.net!world!mv!usenet
- From: ENGR@GSSI.MV.COM (Michael Furman)
- Subject: Re: Leap year
- Message-ID: <Dp1LD9.Mt@mv.mv.com>
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- Organization: GSSI
- Date: Fri, 29 Mar 1996 18:43:56 GMT
- References: <3135A7F2.2120@hiwaay.net> <4hbiln$899@sam.inforamp.net> <4hesba$ph@clarknet.clark.net> <3146D0D8.16BA@msn.com> <315b3f2b.912029@NEWS.CLOUD9.NET>
- X-Newsreader: WinVN 0.99.7
- X-Nntp-Posting-Host: gssi.mv.com
-
- In article <315b3f2b.912029@NEWS.CLOUD9.NET>, jalvo@cloud9.net says...
- >
- >"Poul A. Costinsky" <PoulACost@msn.com> wrote:
- >
- >>return (!(y % 4) && (y % 100));
- >>
- >That will work until 2100 and then err,
- >john alvord
-
- Please, do not post what you do not know about: lots of people are listening
- here. It will be wrong for 2000. Correct one is:
-
- return (!(y % 4) && (!(y % 400) || (y % 100)));
-
- You can lool at: http://www.ft.uni-erlangen.de/~mskuhn/iso-time.html
- It contains a Summary of the International Standard Date and
- Time Notation including the definition of the leap year.
-
-
-
- >
-
- --
- <<< If you received it by E-mail: it is a copy of post to the newsgroup >>>
- ---------------------------------------------------------------
- Michael Furman, (603)893-1109
- Geophysical Survey Systems, Inc. fax:(603)889-3984
- 13 Klein Drive - P.O. Box 97 engr@gssi.mv.com
- North Salem, NH 03073-0097 71543.1334@compuserve.com
- ---------------------------------------------------------------
-
-